Optimal. Leaf size=237 \[ 8 p^2 x-\frac {8 \sqrt {a} p^2 \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{\sqrt {b}}+\frac {4 i \sqrt {a} p^2 \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )^2}{\sqrt {b}}+\frac {8 \sqrt {a} p^2 \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (\frac {2 \sqrt {a}}{\sqrt {a}+i \sqrt {b} x}\right )}{\sqrt {b}}-4 p x \log \left (c \left (a+b x^2\right )^p\right )+\frac {4 \sqrt {a} p \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (c \left (a+b x^2\right )^p\right )}{\sqrt {b}}+x \log ^2\left (c \left (a+b x^2\right )^p\right )+\frac {4 i \sqrt {a} p^2 \text {Li}_2\left (1-\frac {2 \sqrt {a}}{\sqrt {a}+i \sqrt {b} x}\right )}{\sqrt {b}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.17, antiderivative size = 237, normalized size of antiderivative = 1.00, number of steps
used = 12, number of rules used = 11, integrand size = 14, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.786, Rules used = {2500, 2526,
2498, 327, 211, 2520, 12, 5040, 4964, 2449, 2352} \begin {gather*} \frac {4 i \sqrt {a} p^2 \text {PolyLog}\left (2,1-\frac {2 \sqrt {a}}{\sqrt {a}+i \sqrt {b} x}\right )}{\sqrt {b}}+\frac {4 \sqrt {a} p \text {ArcTan}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (c \left (a+b x^2\right )^p\right )}{\sqrt {b}}+\frac {4 i \sqrt {a} p^2 \text {ArcTan}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )^2}{\sqrt {b}}-\frac {8 \sqrt {a} p^2 \text {ArcTan}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{\sqrt {b}}+\frac {8 \sqrt {a} p^2 \text {ArcTan}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (\frac {2 \sqrt {a}}{\sqrt {a}+i \sqrt {b} x}\right )}{\sqrt {b}}+x \log ^2\left (c \left (a+b x^2\right )^p\right )-4 p x \log \left (c \left (a+b x^2\right )^p\right )+8 p^2 x \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 12
Rule 211
Rule 327
Rule 2352
Rule 2449
Rule 2498
Rule 2500
Rule 2520
Rule 2526
Rule 4964
Rule 5040
Rubi steps
\begin {align*} \int \log ^2\left (c \left (a+b x^2\right )^p\right ) \, dx &=x \log ^2\left (c \left (a+b x^2\right )^p\right )-(4 b p) \int \frac {x^2 \log \left (c \left (a+b x^2\right )^p\right )}{a+b x^2} \, dx\\ &=x \log ^2\left (c \left (a+b x^2\right )^p\right )-(4 b p) \int \left (\frac {\log \left (c \left (a+b x^2\right )^p\right )}{b}-\frac {a \log \left (c \left (a+b x^2\right )^p\right )}{b \left (a+b x^2\right )}\right ) \, dx\\ &=x \log ^2\left (c \left (a+b x^2\right )^p\right )-(4 p) \int \log \left (c \left (a+b x^2\right )^p\right ) \, dx+(4 a p) \int \frac {\log \left (c \left (a+b x^2\right )^p\right )}{a+b x^2} \, dx\\ &=-4 p x \log \left (c \left (a+b x^2\right )^p\right )+\frac {4 \sqrt {a} p \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (c \left (a+b x^2\right )^p\right )}{\sqrt {b}}+x \log ^2\left (c \left (a+b x^2\right )^p\right )+\left (8 b p^2\right ) \int \frac {x^2}{a+b x^2} \, dx-\left (8 a b p^2\right ) \int \frac {x \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{\sqrt {a} \sqrt {b} \left (a+b x^2\right )} \, dx\\ &=8 p^2 x-4 p x \log \left (c \left (a+b x^2\right )^p\right )+\frac {4 \sqrt {a} p \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (c \left (a+b x^2\right )^p\right )}{\sqrt {b}}+x \log ^2\left (c \left (a+b x^2\right )^p\right )-\left (8 a p^2\right ) \int \frac {1}{a+b x^2} \, dx-\left (8 \sqrt {a} \sqrt {b} p^2\right ) \int \frac {x \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{a+b x^2} \, dx\\ &=8 p^2 x-\frac {8 \sqrt {a} p^2 \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{\sqrt {b}}+\frac {4 i \sqrt {a} p^2 \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )^2}{\sqrt {b}}-4 p x \log \left (c \left (a+b x^2\right )^p\right )+\frac {4 \sqrt {a} p \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (c \left (a+b x^2\right )^p\right )}{\sqrt {b}}+x \log ^2\left (c \left (a+b x^2\right )^p\right )+\left (8 p^2\right ) \int \frac {\tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{i-\frac {\sqrt {b} x}{\sqrt {a}}} \, dx\\ &=8 p^2 x-\frac {8 \sqrt {a} p^2 \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{\sqrt {b}}+\frac {4 i \sqrt {a} p^2 \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )^2}{\sqrt {b}}+\frac {8 \sqrt {a} p^2 \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (\frac {2 \sqrt {a}}{\sqrt {a}+i \sqrt {b} x}\right )}{\sqrt {b}}-4 p x \log \left (c \left (a+b x^2\right )^p\right )+\frac {4 \sqrt {a} p \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (c \left (a+b x^2\right )^p\right )}{\sqrt {b}}+x \log ^2\left (c \left (a+b x^2\right )^p\right )-\left (8 p^2\right ) \int \frac {\log \left (\frac {2}{1+\frac {i \sqrt {b} x}{\sqrt {a}}}\right )}{1+\frac {b x^2}{a}} \, dx\\ &=8 p^2 x-\frac {8 \sqrt {a} p^2 \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{\sqrt {b}}+\frac {4 i \sqrt {a} p^2 \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )^2}{\sqrt {b}}+\frac {8 \sqrt {a} p^2 \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (\frac {2 \sqrt {a}}{\sqrt {a}+i \sqrt {b} x}\right )}{\sqrt {b}}-4 p x \log \left (c \left (a+b x^2\right )^p\right )+\frac {4 \sqrt {a} p \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (c \left (a+b x^2\right )^p\right )}{\sqrt {b}}+x \log ^2\left (c \left (a+b x^2\right )^p\right )+\frac {\left (8 i \sqrt {a} p^2\right ) \text {Subst}\left (\int \frac {\log (2 x)}{1-2 x} \, dx,x,\frac {1}{1+\frac {i \sqrt {b} x}{\sqrt {a}}}\right )}{\sqrt {b}}\\ &=8 p^2 x-\frac {8 \sqrt {a} p^2 \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{\sqrt {b}}+\frac {4 i \sqrt {a} p^2 \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )^2}{\sqrt {b}}+\frac {8 \sqrt {a} p^2 \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (\frac {2 \sqrt {a}}{\sqrt {a}+i \sqrt {b} x}\right )}{\sqrt {b}}-4 p x \log \left (c \left (a+b x^2\right )^p\right )+\frac {4 \sqrt {a} p \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \log \left (c \left (a+b x^2\right )^p\right )}{\sqrt {b}}+x \log ^2\left (c \left (a+b x^2\right )^p\right )+\frac {4 i \sqrt {a} p^2 \text {Li}_2\left (1-\frac {2 \sqrt {a}}{\sqrt {a}+i \sqrt {b} x}\right )}{\sqrt {b}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.06, size = 193, normalized size = 0.81 \begin {gather*} \frac {4 i \sqrt {a} p^2 \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )^2+4 \sqrt {a} p \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right ) \left (-2 p+2 p \log \left (\frac {2 \sqrt {a}}{\sqrt {a}+i \sqrt {b} x}\right )+\log \left (c \left (a+b x^2\right )^p\right )\right )+\sqrt {b} x \left (8 p^2-4 p \log \left (c \left (a+b x^2\right )^p\right )+\log ^2\left (c \left (a+b x^2\right )^p\right )\right )+4 i \sqrt {a} p^2 \text {Li}_2\left (\frac {i \sqrt {a}+\sqrt {b} x}{-i \sqrt {a}+\sqrt {b} x}\right )}{\sqrt {b}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.05, size = 0, normalized size = 0.00 \[\int \ln \left (c \left (b \,x^{2}+a \right )^{p}\right )^{2}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \log {\left (c \left (a + b x^{2}\right )^{p} \right )}^{2}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int {\ln \left (c\,{\left (b\,x^2+a\right )}^p\right )}^2 \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________